package ee.ut.math.chess.game.manager;

import java.util.Map;
import java.util.TreeMap;
import java.util.UUID;

import ee.ut.math.chess.game.model.Game;


public class GameManager {
	private static Map<UUID, Game> games = new TreeMap<UUID, Game>();
	
	public static Game getGame(UUID uuid) {
		return games.get(uuid);
	}
	
	public static Game newGame() {
		Game game = new Game();
		games.put(game.getId(), game);
		
		return game;
	}
	public static void removeGame(UUID uuid) {
		games.remove(uuid);
	}
}
